<!--

     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file
     distributed with this work for additional information
     regarding copyright ownership.  The ASF licenses this file
     to you under the Apache License, Version 2.0 (the
     "License"); you may not use this file except in compliance
     with the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
     under the License.

-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- **************************************************************** -->
<!-- *  PLEASE KEEP COMPLICATED EXPRESSIONS OUT OF THESE TEMPLATES, * -->
<!-- *  i.e. only iterate & print data where possible. Thanks, Jez. * -->
<!-- **************************************************************** -->

<html>
<head>
    <!-- Generated by groovydoc (2.4.5) on Mon Sep 12 08:35:24 CEST 2016 -->
    <title>RoutingContext (Groovy Documentation)</title>
    <meta name="date" content="2016-09-12">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="../../../../../groovy.ico" type="image/x-icon" rel="shortcut icon">
    <link href="../../../../../groovy.ico" type="image/x-icon" rel="icon">
    <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

<body class="center">
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
    parent.document.title="RoutingContext (Groovy Documentation)";
}
//-->
</script>
<noscript>
    <div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
    <!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
    <!--   -->
</a>
    <ul class="navList" title="Navigation">
        <li><a href="../../../../../overview-summary.html">Overview</a></li>
        <li><a href="package-summary.html">Package</a></li>
        <li class="navBarCell1Rev">Class</li>
        <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
        <li><a href="../../../../../index-all.html">Index</a></li>
        <li><a href="../../../../../help-doc.html">Help</a></li>
    </ul>
</div>

<div class="subNav">
    <div>
        <ul class="navList">
            <li><a href="../../../../../index.html?io/vertx/groovy/ext/web/RoutingContext" target="_top">Frames</a></li>
            <li><a href="RoutingContext.html" target="_top">No Frames</a></li>
        </ul>
    </div>
    <div>
        <ul class="subNavList">
            <li>Summary:&nbsp;</li>
            Nested&nbsp;&nbsp;&nbsp;Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#constructor_summary">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_summary">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
        <ul class="subNavList">
            <li>&nbsp;|&nbsp;Detail:&nbsp;</li>
            Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#constructor_detail">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_detail">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
    </div>
    <a name="skip-navbar_top">
        <!--   -->
    </a></div>
<!-- ========= END OF TOP NAVBAR ========= -->

<!-- ======== START OF CLASS DATA ======== -->
<div class="header">

    <div class="subTitle">Package: <strong>io.vertx.groovy.ext.web</strong></div>

    <h2 title="[Groovy] Class RoutingContext" class="title">[Groovy] Class RoutingContext</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><ul class="inheritance"></ul></li><li>io.vertx.groovy.ext.web.RoutingContext
</ul>
<div class="description">
    <ul class="blockList">
        <li class="blockList">



    <p> Represents the context for the handling of a request in Vert.x-Web.
 <p>
 A new instance is created for each HTTP request that is received in the
 <a href='../../../../../io/vertx/groovy/ext/web/Router.html#accept' title='Router.accept'>Router.accept</a> of the router.
 <p>
 The same instance is passed to any matching request or failure handlers during the routing of the request or
 failure.
 <p>
 The context provides access to the  and 
 and allows you to maintain arbitrary data that lives for the lifetime of the context. Contexts are discarded once they
 have been routed to the handler for the request.
 <p>
 The context also provides access to the <a href='../../../../../io/vertx/groovy/ext/web/Session.html' title='Session'>Session</a>, cookies and body for the request, given the correct handlers
 in the application.
</p>

          </li>
    </ul>
</div>

<div class="summary">
    <ul class="blockList">
        <li class="blockList">
        <!-- =========== NESTED CLASS SUMMARY =========== -->
        

        <!-- =========== ENUM CONSTANT SUMMARY =========== -->
        
        <!-- =========== FIELD SUMMARY =========== -->
        

        <!-- =========== PROPERTY SUMMARY =========== -->
        

        <!-- =========== ELEMENT SUMMARY =========== -->
        

        
        <!-- ======== CONSTRUCTOR SUMMARY ======== -->
        <ul class="blockList">
                <li class="blockList"><a name="constructor_summary"><!--   --></a>
                    <h3>Constructor Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructors Summary table">
                        <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Constructor and description</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst">
                                <code><a href="#RoutingContext(java.lang.Object)">RoutingContext</a></strong>
                                (java.lang.Object delegate)</code><br></td>
                        </tr>
                        
                    </table>
                   </ul>
              </li>
        </ul>
        

        
        <!-- ========== METHOD SUMMARY =========== -->
        <ul class="blockList">
            
            <li class="blockList"><a name="method_summary"><!--   --></a>
                    <h3>Methods Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Methods Summary table">
                        <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Type</th>
                            <th class="colLast" scope="col">Name and description</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.util.List&lt;<a href='../../../../../io/vertx/groovy/ext/web/Locale.html' title='Locale'>Locale</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#acceptableLocales()">acceptableLocales</a></strong>()</code><br>Returns the locales for the current request. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#addBodyEndHandler(Handler<Void>)">addBodyEndHandler</a></strong>(io.vertx.core.Handler&lt;java.lang.Void&gt; handler)</code><br>Provides a handler that will be called after the last part of the body is written to the wire.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='../../../../../io/vertx/groovy/ext/web/RoutingContext.html'>RoutingContext</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#addCookie(io.vertx.groovy.ext.web.Cookie)">addCookie</a></strong>(<a href='../../../../../io/vertx/groovy/ext/web/Cookie.html'>Cookie</a> cookie)</code><br>Add a cookie. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#addHeadersEndHandler(Handler<Void>)">addHeadersEndHandler</a></strong>(io.vertx.core.Handler&lt;java.lang.Void&gt; handler)</code><br>Add a handler that will be called just before headers are written to the response. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#clearUser()">clearUser</a></strong>()</code><br>Clear the current user object in the context. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#cookieCount()">cookieCount</a></strong>()</code><br> <DL><DT><B>Returns:</B></DT><DD>the number of cookies.</DD></DL></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.util.Set&lt;<a href='../../../../../io/vertx/groovy/ext/web/Cookie.html' title='Cookie'>Cookie</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#cookies()">cookies</a></strong>()</code><br> <DL><DT><B>Returns:</B></DT><DD>a set of all the cookies.</DD></DL></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../../../../io/vertx/groovy/ext/web/Route.html'>Route</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#currentRoute()">currentRoute</a></strong>()</code><br>@return the current route this context is being routed through.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#fail(int)">fail</a></strong>(int statusCode)</code><br>Fail the context with the specified status code.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#fail(java.lang.Throwable)">fail</a></strong>(java.lang.Throwable throwable)</code><br>Fail the context with the specified throwable.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#failed()">failed</a></strong>()</code><br>@return true if the context is being routed to failure handlers.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.lang.Throwable</strong></code></td>
                            <td class="colLast"><code><strong><a href="#failure()">failure</a></strong>()</code><br>If the context is being routed to failure handlers after a failure has been triggered by calling
 <a href='../../../../../io/vertx/groovy/ext/web/RoutingContext.html#fail' title='RoutingContext.fail'>RoutingContext.fail</a> then this will return that throwable. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.util.Set&lt;<a href='../../../../../io/vertx/groovy/ext/web/FileUpload.html' title='FileUpload'>FileUpload</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#fileUploads()">fileUploads</a></strong>()</code><br> <DL><DT><B>Returns:</B></DT><DD>a set of fileuploads (if any) for the request.</DD></DL></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>T</strong></code></td>
                            <td class="colLast"><code><strong><a href="#get(java.lang.String)">get</a></strong>(java.lang.String key)</code><br>Get some data from the context. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getAcceptableContentType()">getAcceptableContentType</a></strong>()</code><br>If the route specifies produces matches, e.g. produces `text/html` and `text/plain`, and the `accept` header
 matches one or more of these then this returns the most acceptable match.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../../../../io/vertx/groovy/core/buffer/Buffer.html'>Buffer</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#getBody()">getBody</a></strong>()</code><br> <DL><DT><B>Returns:</B></DT><DD>Get the entire HTTP request body as a .</DD></DL></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.util.Map&lt;java.lang.String, java.lang.Object&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getBodyAsJson()">getBodyAsJson</a></strong>()</code><br> <DL><DT><B>Returns:</B></DT><DD>Get the entire HTTP request body as a .</DD></DL></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.util.List&lt;java.lang.Object&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getBodyAsJsonArray()">getBodyAsJsonArray</a></strong>()</code><br> <DL><DT><B>Returns:</B></DT><DD>Get the entire HTTP request body as a .</DD></DL></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getBodyAsString()">getBodyAsString</a></strong>()</code><br> <DL><DT><B>Returns:</B></DT><DD>the entire HTTP request body as a string, assuming UTF-8 encoding.</DD></DL></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getBodyAsString(java.lang.String)">getBodyAsString</a></strong>(java.lang.String encoding)</code><br>Get the entire HTTP request body as a string, assuming the specified encoding. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='../../../../../io/vertx/groovy/ext/web/Cookie.html'>Cookie</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#getCookie(java.lang.String)">getCookie</a></strong>(java.lang.String name)</code><br>Get the cookie with the specified name. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.lang.Object</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getDelegate()">getDelegate</a></strong>()</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#mountPoint()">mountPoint</a></strong>()</code><br> <DL><DT><B>Returns:</B></DT><DD>the mount point for this router.</DD></DL></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#next()">next</a></strong>()</code><br>Tell the router to route this context to the next matching route (if any).
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#normalisedPath()">normalisedPath</a></strong>()</code><br>Return the normalised path for the request.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#pathParam(java.lang.String)">pathParam</a></strong>(java.lang.String name)</code><br>Gets the value of a single path parameter</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.util.Map&lt;java.lang.String, java.lang.String&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#pathParams()">pathParams</a></strong>()</code><br>Returns a map of named parameters as defined in path declaration with their actual values</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../../../../io/vertx/groovy/ext/web/Locale.html'>Locale</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#preferredLocale()">preferredLocale</a></strong>()</code><br>Helper to return the user preferred locale. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='../../../../../io/vertx/groovy/ext/web/RoutingContext.html'>RoutingContext</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#put(java.lang.String, java.lang.Object)">put</a></strong>(java.lang.String key, java.lang.Object obj)</code><br>Put some arbitrary data in the context. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>T</strong></code></td>
                            <td class="colLast"><code><strong><a href="#remove(java.lang.String)">remove</a></strong>(java.lang.String key)</code><br>Remove some data from the context. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#removeBodyEndHandler(int)">removeBodyEndHandler</a></strong>(int handlerID)</code><br>Remove a body end handler</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../../../../io/vertx/groovy/ext/web/Cookie.html'>Cookie</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#removeCookie(java.lang.String)">removeCookie</a></strong>(java.lang.String name)</code><br>Remove a cookie. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#removeHeadersEndHandler(int)">removeHeadersEndHandler</a></strong>(int handlerID)</code><br>Remove a headers end handler</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../../../../io/vertx/groovy/core/http/HttpServerRequest.html'>HttpServerRequest</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#request()">request</a></strong>()</code><br>@return the HTTP request object</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#reroute(java.lang.String)">reroute</a></strong>(java.lang.String path)</code><br>Restarts the current router with a new path and reusing the original method. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#reroute(io.vertx.core.http.HttpMethod, java.lang.String)">reroute</a></strong>(io.vertx.core.http.HttpMethod method, java.lang.String path)</code><br>Restarts the current router with a new method and path. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='../../../../../io/vertx/groovy/core/http/HttpServerResponse.html'>HttpServerResponse</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#response()">response</a></strong>()</code><br>@return the HTTP response object</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../../../../io/vertx/groovy/ext/web/Session.html'>Session</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#session()">session</a></strong>()</code><br>Get the session. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#setAcceptableContentType(java.lang.String)">setAcceptableContentType</a></strong>(java.lang.String contentType)</code><br>Set the acceptable content type. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#setBody(io.vertx.groovy.core.buffer.Buffer)">setBody</a></strong>(<a href='../../../../../io/vertx/groovy/core/buffer/Buffer.html'>Buffer</a> body)</code><br>Set the body. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#setSession(io.vertx.groovy.ext.web.Session)">setSession</a></strong>(<a href='../../../../../io/vertx/groovy/ext/web/Session.html'>Session</a> session)</code><br>Set the session. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#setUser(io.vertx.groovy.ext.auth.User)">setUser</a></strong>(<a href='../../../../../io/vertx/groovy/ext/auth/User.html'>User</a> user)</code><br>Set the user. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#statusCode()">statusCode</a></strong>()</code><br>If the context is being routed to failure handlers after a failure has been triggered by calling
 <a href='../../../../../io/vertx/groovy/ext/web/RoutingContext.html#fail' title='RoutingContext.fail'>RoutingContext.fail</a>  then this will return that status code.  </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../../../../io/vertx/groovy/ext/auth/User.html'>User</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#user()">user</a></strong>()</code><br>Get the authenticated user (if any). </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='../../../../../io/vertx/groovy/core/Vertx.html'>Vertx</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#vertx()">vertx</a></strong>()</code><br>@return the Vert.x instance associated to the initiating <a href='../../../../../io/vertx/groovy/ext/web/Router.html' title='Router'>Router</a> for this context</td>
                        </tr>
                        
                    </table>
                   </ul>
              </li>
            
            <li class="blockList"><a name="method_summary"><!--   --></a>
                    <h3>Inherited Methods Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Inherited Methods Summary table">
                        <caption><span>Inherited Methods</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Methods inherited from class</th>
                            <th class="colLast" scope="col">Name</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>class java.lang.Object</strong></code></td>
                            <td class="colLast"><code>java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()</code></td>
                        </tr>
                    </table>
                   </ul>
              </li>
                
        </ul>
        
    </li>
    </ul>
</div>

<div class="details">
    <ul class="blockList">
        <li class="blockList">
           

            

            

            

            
            <!-- =========== CONSTRUCTOR DETAIL =========== -->
            <ul class="blockList">
                <li class="blockList"><a name="constructor_detail">
                    <!--   -->
                </a>
                    <h3>Constructor Detail</h3>
                    
                        <a name="RoutingContext(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><strong>RoutingContext</strong>(java.lang.Object delegate)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                </li>
            </ul>
            


            
            <!-- =========== METHOD DETAIL =========== -->
            <ul class="blockList">
                <li class="blockList"><a name="method_detail">
                    <!--   -->
                </a>
                    <h3>Method Detail</h3>
                    
                        <a name="acceptableLocales()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.util.List&lt;<a href='../../../../../io/vertx/groovy/ext/web/Locale.html' title='Locale'>Locale</a>&gt; <strong>acceptableLocales</strong>()</h4>
                                <p> Returns the locales for the current request. The locales are determined from the `accept-languages` header and
 sorted on quality.

 When 2 or more entries have the same quality then the order used to return the best match is based on the lowest
 index on the original list. For example if a user has en-US and en-GB with same quality and this order the best
 match will be en-US because it was declared as first entry by the client.
   <DL><DT><B>Returns:</B></DT><DD>the best matched locale for the request</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="addBodyEndHandler(Handler<Void>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>int <strong>addBodyEndHandler</strong>(io.vertx.core.Handler&lt;java.lang.Void&gt; handler)</h4>
                                <p> Provides a handler that will be called after the last part of the body is written to the wire.
 The handler is called asynchronously of when the response has been received by the client.
 This provides a hook allowing you to do more operations once the request has been sent over the wire
 such as resource cleanup.
   <DL><DT><B>Returns:</B></DT><DD>the id of the handler. This can be used if you later want to remove the handler.</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>handler</code> -  the handler</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="addCookie(io.vertx.groovy.ext.web.Cookie)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../../io/vertx/groovy/ext/web/RoutingContext.html'>RoutingContext</a> <strong>addCookie</strong>(<a href='../../../../../io/vertx/groovy/ext/web/Cookie.html'>Cookie</a> cookie)</h4>
                                <p> Add a cookie. This will be sent back to the client in the response. The context must have first been routed
 to a <a href='../../../../../io/vertx/groovy/ext/web/handler/CookieHandler.html' title='CookieHandler'>CookieHandler</a> for this to work.
   <DL><DT><B>Returns:</B></DT><DD>a reference to this, so the API can be used fluently</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>cookie</code> -  the cookie</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="addHeadersEndHandler(Handler<Void>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>int <strong>addHeadersEndHandler</strong>(io.vertx.core.Handler&lt;java.lang.Void&gt; handler)</h4>
                                <p> Add a handler that will be called just before headers are written to the response. This gives you a hook where
 you can write any extra headers before the response has been written when it will be too late.
   <DL><DT><B>Returns:</B></DT><DD>the id of the handler. This can be used if you later want to remove the handler.</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>handler</code> -  the handler</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="clearUser()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>void <strong>clearUser</strong>()</h4>
                                <p> Clear the current user object in the context. This usually is used for implementing a log out feature, since the
 current user is unbounded from the routing context.
   </p>
                            </li>
                        </ul>
                    
                        <a name="cookieCount()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>int <strong>cookieCount</strong>()</h4>
                                <p>
   <DL><DT><B>Returns:</B></DT><DD>the number of cookies. The context must have first been routed to a <a href='../../../../../io/vertx/groovy/ext/web/handler/CookieHandler.html' title='CookieHandler'>CookieHandler</a> for this to work.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="cookies()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.util.Set&lt;<a href='../../../../../io/vertx/groovy/ext/web/Cookie.html' title='Cookie'>Cookie</a>&gt; <strong>cookies</strong>()</h4>
                                <p>
   <DL><DT><B>Returns:</B></DT><DD>a set of all the cookies. The context must have first been routed to a <a href='../../../../../io/vertx/groovy/ext/web/handler/CookieHandler.html' title='CookieHandler'>CookieHandler</a> for this to be populated.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="currentRoute()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../../io/vertx/groovy/ext/web/Route.html'>Route</a> <strong>currentRoute</strong>()</h4>
                                <p>
   <DL><DT><B>Returns:</B></DT><DD>the current route this context is being routed through.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="fail(int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>void <strong>fail</strong>(int statusCode)</h4>
                                <p> Fail the context with the specified status code.
 <p>
 This will cause the router to route the context to any matching failure handlers for the request. If no failure handlers
 match a default failure response will be sent.
   <DL><DT><B>Parameters:</B></DT><DD><code>statusCode</code> -  the HTTP status code</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="fail(java.lang.Throwable)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>void <strong>fail</strong>(java.lang.Throwable throwable)</h4>
                                <p> Fail the context with the specified throwable.
 <p>
 This will cause the router to route the context to any matching failure handlers for the request. If no failure handlers
 match a default failure response with status code 500 will be sent.
   <DL><DT><B>Parameters:</B></DT><DD><code>throwable</code> -  a throwable representing the failure</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="failed()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>boolean <strong>failed</strong>()</h4>
                                <p>
   <DL><DT><B>Returns:</B></DT><DD>true if the context is being routed to failure handlers.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="failure()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.lang.Throwable <strong>failure</strong>()</h4>
                                <p> If the context is being routed to failure handlers after a failure has been triggered by calling
 <a href='../../../../../io/vertx/groovy/ext/web/RoutingContext.html#fail' title='RoutingContext.fail'>RoutingContext.fail</a> then this will return that throwable. It can be used by failure handlers to render a response,
 e.g. create a failure response page.
   <DL><DT><B>Returns:</B></DT><DD>the throwable used when signalling failure</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="fileUploads()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.util.Set&lt;<a href='../../../../../io/vertx/groovy/ext/web/FileUpload.html' title='FileUpload'>FileUpload</a>&gt; <strong>fileUploads</strong>()</h4>
                                <p>
   <DL><DT><B>Returns:</B></DT><DD>a set of fileuploads (if any) for the request. The context must have first been routed to a <a href='../../../../../io/vertx/groovy/ext/web/handler/BodyHandler.html' title='BodyHandler'>BodyHandler</a> for this to work.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="get(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>T <strong>get</strong>(java.lang.String key)</h4>
                                <p> Get some data from the context. The data is available in any handlers that receive the context.
   <DL><DT><B>Returns:</B></DT><DD>the data</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>key</code> -  the key for the data</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getAcceptableContentType()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.lang.String <strong>getAcceptableContentType</strong>()</h4>
                                <p> If the route specifies produces matches, e.g. produces `text/html` and `text/plain`, and the `accept` header
 matches one or more of these then this returns the most acceptable match.
   <DL><DT><B>Returns:</B></DT><DD>the most acceptable content type.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getBody()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../../io/vertx/groovy/core/buffer/Buffer.html'>Buffer</a> <strong>getBody</strong>()</h4>
                                <p>
   <DL><DT><B>Returns:</B></DT><DD>Get the entire HTTP request body as a . The context must have first been routed to a <a href='../../../../../io/vertx/groovy/ext/web/handler/BodyHandler.html' title='BodyHandler'>BodyHandler</a> for this to be populated.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getBodyAsJson()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.util.Map&lt;java.lang.String, java.lang.Object&gt; <strong>getBodyAsJson</strong>()</h4>
                                <p>
   <DL><DT><B>Returns:</B></DT><DD>Get the entire HTTP request body as a . The context must have first been routed to a <a href='../../../../../io/vertx/groovy/ext/web/handler/BodyHandler.html' title='BodyHandler'>BodyHandler</a> for this to be populated.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getBodyAsJsonArray()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.util.List&lt;java.lang.Object&gt; <strong>getBodyAsJsonArray</strong>()</h4>
                                <p>
   <DL><DT><B>Returns:</B></DT><DD>Get the entire HTTP request body as a . The context must have first been routed to a <a href='../../../../../io/vertx/groovy/ext/web/handler/BodyHandler.html' title='BodyHandler'>BodyHandler</a> for this to be populated.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getBodyAsString()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.lang.String <strong>getBodyAsString</strong>()</h4>
                                <p>
   <DL><DT><B>Returns:</B></DT><DD>the entire HTTP request body as a string, assuming UTF-8 encoding. The context must have first been routed to a <a href='../../../../../io/vertx/groovy/ext/web/handler/BodyHandler.html' title='BodyHandler'>BodyHandler</a> for this to be populated.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getBodyAsString(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.lang.String <strong>getBodyAsString</strong>(java.lang.String encoding)</h4>
                                <p> Get the entire HTTP request body as a string, assuming the specified encoding. The context must have first been routed to a
 <a href='../../../../../io/vertx/groovy/ext/web/handler/BodyHandler.html' title='BodyHandler'>BodyHandler</a> for this to be populated.
   <DL><DT><B>Returns:</B></DT><DD>the body</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>encoding</code> -  the encoding, e.g. "UTF-16"</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getCookie(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../../io/vertx/groovy/ext/web/Cookie.html'>Cookie</a> <strong>getCookie</strong>(java.lang.String name)</h4>
                                <p> Get the cookie with the specified name. The context must have first been routed to a <a href='../../../../../io/vertx/groovy/ext/web/handler/CookieHandler.html' title='CookieHandler'>CookieHandler</a>
 for this to work.
   <DL><DT><B>Returns:</B></DT><DD>the cookie</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>name</code> -  the cookie name</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getDelegate()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.lang.Object <strong>getDelegate</strong>()</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="mountPoint()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.lang.String <strong>mountPoint</strong>()</h4>
                                <p>
   <DL><DT><B>Returns:</B></DT><DD>the mount point for this router. It will be null for a top level router. For a sub-router it will be the path at which the subrouter was mounted.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="next()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>void <strong>next</strong>()</h4>
                                <p> Tell the router to route this context to the next matching route (if any).
 This method, if called, does not need to be called during the execution of the handler, it can be called
 some arbitrary time later, if required.
 <p>
 If next is not called for a handler then the handler should make sure it ends the response or no response
 will be sent.
   </p>
                            </li>
                        </ul>
                    
                        <a name="normalisedPath()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.lang.String <strong>normalisedPath</strong>()</h4>
                                <p> Return the normalised path for the request.
 <p>
 The normalised path is where the URI path has been decoded, i.e. any unicode or other illegal URL characters that
 were encoded in the original URL with `%` will be returned to their original form. E.g. `%20` will revert to a space.
 Also `+` reverts to a space in a query.
 <p>
 The normalised path will also not contain any `..` character sequences to prevent resources being accessed outside
 of the permitted area.
 <p>
 It's recommended to always use the normalised path as opposed to 
 if accessing server resources requested by a client.
   <DL><DT><B>Returns:</B></DT><DD>the normalised path</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="pathParam(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.lang.String <strong>pathParam</strong>(java.lang.String name)</h4>
                                <p> Gets the value of a single path parameter
   <DL><DT><B>Returns:</B></DT><DD>the actual value of the parameter or null if it doesn't exist</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>name</code> -  the name of parameter as defined in path declaration</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="pathParams()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.util.Map&lt;java.lang.String, java.lang.String&gt; <strong>pathParams</strong>()</h4>
                                <p> Returns a map of named parameters as defined in path declaration with their actual values
   <DL><DT><B>Returns:</B></DT><DD>the map of named parameters</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="preferredLocale()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../../io/vertx/groovy/ext/web/Locale.html'>Locale</a> <strong>preferredLocale</strong>()</h4>
                                <p> Helper to return the user preferred locale. It is the same action as returning the first element of the acceptable
 locales.
   <DL><DT><B>Returns:</B></DT><DD>the users preferred locale.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="put(java.lang.String, java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../../io/vertx/groovy/ext/web/RoutingContext.html'>RoutingContext</a> <strong>put</strong>(java.lang.String key, java.lang.Object obj)</h4>
                                <p> Put some arbitrary data in the context. This will be available in any handlers that receive the context.
   <DL><DT><B>Returns:</B></DT><DD>a reference to this, so the API can be used fluently</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>key</code> -  the key for the data</DD><DD><code>obj</code> -  the data</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="remove(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>T <strong>remove</strong>(java.lang.String key)</h4>
                                <p> Remove some data from the context. The data is available in any handlers that receive the context.
   <DL><DT><B>Returns:</B></DT><DD>the previous data associated with the key</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>key</code> -  the key for the data</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="removeBodyEndHandler(int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>boolean <strong>removeBodyEndHandler</strong>(int handlerID)</h4>
                                <p> Remove a body end handler
   <DL><DT><B>Returns:</B></DT><DD>true if the handler existed and was removed, false otherwise</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>handlerID</code> -  the id as returned from <a href='../../../../../io/vertx/groovy/ext/web/RoutingContext.html#addBodyEndHandler' title='RoutingContext.addBodyEndHandler'>RoutingContext.addBodyEndHandler</a>.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="removeCookie(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../../io/vertx/groovy/ext/web/Cookie.html'>Cookie</a> <strong>removeCookie</strong>(java.lang.String name)</h4>
                                <p> Remove a cookie. The context must have first been routed to a <a href='../../../../../io/vertx/groovy/ext/web/handler/CookieHandler.html' title='CookieHandler'>CookieHandler</a>
 for this to work.
   <DL><DT><B>Returns:</B></DT><DD>the cookie, if it existed, or null</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>name</code> -  the name of the cookie</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="removeHeadersEndHandler(int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>boolean <strong>removeHeadersEndHandler</strong>(int handlerID)</h4>
                                <p> Remove a headers end handler
   <DL><DT><B>Returns:</B></DT><DD>true if the handler existed and was removed, false otherwise</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>handlerID</code> -  the id as returned from <a href='../../../../../io/vertx/groovy/ext/web/RoutingContext.html#addHeadersEndHandler' title='RoutingContext.addHeadersEndHandler'>RoutingContext.addHeadersEndHandler</a>.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="request()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../../io/vertx/groovy/core/http/HttpServerRequest.html'>HttpServerRequest</a> <strong>request</strong>()</h4>
                                <p>
   <DL><DT><B>Returns:</B></DT><DD>the HTTP request object</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="reroute(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>void <strong>reroute</strong>(java.lang.String path)</h4>
                                <p> Restarts the current router with a new path and reusing the original method. All path parameters are then parsed
 and available on the params list.
   <DL><DT><B>Parameters:</B></DT><DD><code>path</code> -  the new http path.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="reroute(io.vertx.core.http.HttpMethod, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>void <strong>reroute</strong>(io.vertx.core.http.HttpMethod method, java.lang.String path)</h4>
                                <p> Restarts the current router with a new method and path. All path parameters are then parsed and available on the
 params list.
   <DL><DT><B>Parameters:</B></DT><DD><code>method</code> -  the new http request</DD><DD><code>path</code> -  the new http path.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="response()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../../io/vertx/groovy/core/http/HttpServerResponse.html'>HttpServerResponse</a> <strong>response</strong>()</h4>
                                <p>
   <DL><DT><B>Returns:</B></DT><DD>the HTTP response object</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="session()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../../io/vertx/groovy/ext/web/Session.html'>Session</a> <strong>session</strong>()</h4>
                                <p> Get the session. The context must have first been routed to a <a href='../../../../../io/vertx/groovy/ext/web/handler/SessionHandler.html' title='SessionHandler'>SessionHandler</a>
 for this to be populated.
 Sessions live for a browser session, and are maintained by session cookies.
   <DL><DT><B>Returns:</B></DT><DD>the session.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="setAcceptableContentType(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>void <strong>setAcceptableContentType</strong>(java.lang.String contentType)</h4>
                                <p> Set the acceptable content type. Used by
   <DL><DT><B>Parameters:</B></DT><DD><code>contentType</code> -  the content type</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="setBody(io.vertx.groovy.core.buffer.Buffer)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>void <strong>setBody</strong>(<a href='../../../../../io/vertx/groovy/core/buffer/Buffer.html'>Buffer</a> body)</h4>
                                <p> Set the body. Used by the <a href='../../../../../io/vertx/groovy/ext/web/handler/BodyHandler.html' title='BodyHandler'>BodyHandler</a>. You will not normally call this method.
   <DL><DT><B>Parameters:</B></DT><DD><code>body</code> -  the body</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="setSession(io.vertx.groovy.ext.web.Session)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>void <strong>setSession</strong>(<a href='../../../../../io/vertx/groovy/ext/web/Session.html'>Session</a> session)</h4>
                                <p> Set the session. Used by the <a href='../../../../../io/vertx/groovy/ext/web/handler/SessionHandler.html' title='SessionHandler'>SessionHandler</a>. You will not normally call this method.
   <DL><DT><B>Parameters:</B></DT><DD><code>session</code> -  the session</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="setUser(io.vertx.groovy.ext.auth.User)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>void <strong>setUser</strong>(<a href='../../../../../io/vertx/groovy/ext/auth/User.html'>User</a> user)</h4>
                                <p> Set the user. Usually used by auth handlers to inject a User. You will not normally call this method.
   <DL><DT><B>Parameters:</B></DT><DD><code>user</code> -  the user</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="statusCode()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>int <strong>statusCode</strong>()</h4>
                                <p> If the context is being routed to failure handlers after a failure has been triggered by calling
 <a href='../../../../../io/vertx/groovy/ext/web/RoutingContext.html#fail' title='RoutingContext.fail'>RoutingContext.fail</a>  then this will return that status code.  It can be used by failure handlers to render a response,
 e.g. create a failure response page.

 When the status code has not been set yet (it is undefined) its value will be -1.
   <DL><DT><B>Returns:</B></DT><DD>the status code used when signalling failure</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="user()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../../io/vertx/groovy/ext/auth/User.html'>User</a> <strong>user</strong>()</h4>
                                <p> Get the authenticated user (if any). This will usually be injected by an auth handler if authentication if successful.
   <DL><DT><B>Returns:</B></DT><DD>the user, or null if the current user is not authenticated.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="vertx()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../../io/vertx/groovy/core/Vertx.html'>Vertx</a> <strong>vertx</strong>()</h4>
                                <p>
   <DL><DT><B>Returns:</B></DT><DD>the Vert.x instance associated to the initiating <a href='../../../../../io/vertx/groovy/ext/web/Router.html' title='Router'>Router</a> for this context</DD></DL></p>
                            </li>
                        </ul>
                    
                </li>
            </ul>
            
        </li>
    </ul>
</div>

<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
    <!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
    <!--   -->
</a>
    <ul class="navList" title="Navigation">
        <li><a href="../../../../../overview-summary.html">Overview</a></li>
        <li><a href="package-summary.html">Package</a></li>
        <li class="navBarCell1Rev">Class</li>
        <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
        <li><a href="../../../../../index-all.html">Index</a></li>
        <li><a href="../../../../../help-doc.html">Help</a></li>
    </ul>
</div>

<div class="subNav">
    <div>
        <ul class="navList">
            <li><a href="../../../../../index.html?io/vertx/groovy/ext/web/RoutingContext" target="_top">Frames</a></li>
            <li><a href="RoutingContext.html" target="_top">No Frames</a></li>
        </ul>
    </div>
    <div>
        <ul class="subNavList">
            <li>Summary:&nbsp;</li>
            Nested&nbsp;&nbsp;&nbsp;Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#constructor_summary">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_summary">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
        <ul class="subNavList">
            <li>&nbsp;|&nbsp;Detail:&nbsp;</li>
            Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#constructor_detail">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_detail">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
    </div>
    <p>Groovy Documentation</p>
    <a name="skip-navbar_bottom">
        <!--   -->
    </a>
    </div>
</div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>